import request from '@/utils/request'

// 查询特需会诊
export function getInstitutions(data) {
  return request({
    url: '/institutions/ningbo',
    method: 'POST',
	data
  })
}

// 医生登录时获取会诊设置,是否整理,是否分配,是否终审
export function getInstitutionsSetting(institutionId) {
  return request({
    url: '/institutions/'+institutionId,
    method: 'GET',
  })
}

//机构列表
export function getInstitutionSearch(data) {
  return request({
    url:  '/institutions/search',
    method: 'POST',
	data
  })
}

//终审医生
export function getFinalDoctors() {
  return request({
    url: '/institutions/getFinalDoctors',
    method: 'GET',
  })
}

//获取主办平台信息
export function getPlatform(ordersId) {
  return request({
    url: `/institutions/platform`,
    method: 'GET',
  })
}

//代转机构列表
export function getDaizhuanAllIntitutions(data) {
  return request({
    url:  '/institutions/ningbo/daizhuan/all',
    method: 'POST',
  })
}

//获取申请机构列表
export function getAllSigns(ordersId) {
  return request({
    url: `/institutions/allSigns`,
    method: 'GET',
  })
}